Skip to content
This repository has been archived by the owner on Apr 9, 2018. It is now read-only.

Commit

Permalink
build: move all (un)install* target aliases to toplevel Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Mans Rullgard <mans@mansr.com>
  • Loading branch information
mansr committed Jun 6, 2011
1 parent 0e28e9c commit d7a72d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ doc/%.1: TAG = MAN
doc/%.1: doc/%.pod
$(M)pod2man --section=1 --center=" " --release=" " $< > $@

install: $(INSTALL_TARGETS-yes)
install: install-libs install-headers $(INSTALL_TARGETS-yes)

install-libs: install-libs-yes

install-progs: $(PROGS) $(INSTALL_PROGS_TARGETS-yes)
$(Q)mkdir -p "$(BINDIR)"
Expand All @@ -142,7 +144,7 @@ install-man: $(MANPAGES)
$(Q)mkdir -p "$(MANDIR)/man1"
$(INSTALL) -m 644 $(MANPAGES) "$(MANDIR)/man1"

uninstall: uninstall-progs uninstall-data uninstall-man
uninstall: uninstall-libs uninstall-headers uninstall-progs uninstall-data uninstall-man

uninstall-progs:
$(RM) $(addprefix "$(BINDIR)/", $(ALLPROGS))
Expand Down
5 changes: 0 additions & 5 deletions common.mak
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ HOSTCFLAGS += $(IFLAGS)
%.h:
@:

install: install-libs install-headers
install-libs: install-libs-yes

uninstall: uninstall-libs uninstall-headers

.PHONY: all depend dep *clean install* uninstall* examples testprogs

# Disable suffix rules. Most of the builtin rules are suffix rules,
Expand Down

0 comments on commit d7a72d2

Please sign in to comment.