Skip to content

Commit

Permalink
Merge pull request #6342 from kmk3/build-add-strip
Browse files Browse the repository at this point in the history
build: add strip target and simplify install targets
  • Loading branch information
kmk3 committed May 20, 2024
2 parents 83469a3 + 97de0e0 commit 4e25922
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ mydirs: $(MYDIRS)
$(MYDIRS):
$(MAKE) -C $@

.PHONY: strip
strip: all
strip $(ALL_ITEMS)

.PHONY: filters
filters: $(SECCOMP_FILTERS)
seccomp: src/fseccomp/fseccomp src/fsec-optimize/fsec-optimize Makefile
Expand Down Expand Up @@ -189,8 +193,8 @@ clean:
distclean: clean
rm -fr autom4te.cache config.log config.mk config.sh config.status

.PHONY: realinstall
realinstall: config.mk
.PHONY: install
install: all config.mk
# firejail executable
install -m 0755 -d $(DESTDIR)$(bindir)
install -m 0755 src/firejail/firejail $(DESTDIR)$(bindir)
Expand Down Expand Up @@ -268,14 +272,8 @@ endif
install -m 0755 -d $(DESTDIR)$(datarootdir)/zsh/site-functions
install -m 0644 src/zsh_completion/_firejail $(DESTDIR)$(datarootdir)/zsh/site-functions/

.PHONY: install
install: all
$(MAKE) realinstall

.PHONY: install-strip
install-strip: all
strip $(ALL_ITEMS)
$(MAKE) realinstall
install-strip: strip install

.PHONY: uninstall
uninstall: config.mk
Expand Down

0 comments on commit 4e25922

Please sign in to comment.