lnstools

Linux namespace tools
git clone https://ccx.te2000.cz/git/lnstools
Log | Files | Refs | README

Makefile (896B)


      1 default: static_executables script_executables
      2 .PHONY: default
      3 
      4 script_executables:=lns-bind-chroot lns-tmpfs-chroot lns-prepare-chroot lns-mounts-to-env
      5 script_executable_paths:=$(patsubst %,./build/%,${script_executables})
      6 script_executables: $(script_executable_paths)
      7 .PHONY: script_executables
      8 
      9 c_executables:=lns-lockdown lns-envuidgid lns-applyuidgid lns-pidns
     10 include simplelink.mk
     11 
     12 conf/cc conf/ld.shared conf/ld.static conf/script_gen conf/config.mk:
     13 	@printf '%s\n' "Please run configure script first!"; exit 1
     14 
     15 build/%: src/%.in conf/script_gen scripts/abspaths2.awk
     16 	sh conf/script_gen awk -f ./scripts/abspaths2.awk 'src/$*.in' >'$@.new'
     17 	mv -v '$@.new' '$@'
     18 
     19 clean:
     20 	rm -r build
     21 
     22 distclean:
     23 	rm -rf conf build
     24 .PHONY: clean
     25 
     26 -include conf/config.mk
     27 
     28 install: $(install_bin_files)
     29 	install -d $(DESTDIR)$(INSTALL_BINDIR)
     30 	install -t $(DESTDIR)$(INSTALL_BINDIR) $(install_bin_files)