diff options
author | 2022-05-07 02:38:08 -0300 | |
---|---|---|
committer | 2022-11-21 17:19:00 -0300 | |
commit | 48c151aa1683de94e42f4410fb9312936e030adf (patch) | |
tree | 508b7b9cecb88856a8bcc5117248e923eedc031f /src/lib | |
parent | makefiles: line-wrap MOD_HDRS and MOD_OBJS (diff) | |
download | firejail-48c151aa1683de94e42f4410fb9312936e030adf.tar.gz firejail-48c151aa1683de94e42f4410fb9312936e030adf.tar.zst firejail-48c151aa1683de94e42f4410fb9312936e030adf.zip |
makefiles: deduplicate main target name into new PROG var
Put the main target name into a new PROG variable, put PROG into a new
TARGET variable, make "all" depend on `$(TARGET)` and replace every
other occurrence of the main target name with `$(PROG)`.
On the makefiles that build non-shared objects, to make them more
similar. With this commit, all of their targets are identical (except
for the extra "lib" target on src/lib/Makefile).
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Makefile b/src/lib/Makefile index ff1cfcf74..121aae4bd 100644 --- a/src/lib/Makefile +++ b/src/lib/Makefile | |||
@@ -1,8 +1,10 @@ | |||
1 | ROOT = ../.. | 1 | ROOT = ../.. |
2 | -include $(ROOT)/config.mk | 2 | -include $(ROOT)/config.mk |
3 | 3 | ||
4 | TARGET = lib | ||
5 | |||
4 | .PHONY: all | 6 | .PHONY: all |
5 | all: lib | 7 | all: $(TARGET) |
6 | 8 | ||
7 | include $(ROOT)/src/common.mk | 9 | include $(ROOT)/src/common.mk |
8 | 10 | ||