comparison Makefile @ 6:4269feba381e

Ensure everything is built before installing
author Guido Berhoerster <guido+pwm@berhoerster.name>
date Mon, 06 Feb 2017 10:38:57 +0100
parents 55281f14dc9b
children 25e227eba3da
comparison
equal deleted inserted replaced
5:0b1bce8db371 6:4269feba381e
1 # 1 #
2 # Copyright (C) 2016 Guido Berhoerster <guido+pwm@berhoerster.name> 2 # Copyright (C) 2017 Guido Berhoerster <guido+pwm@berhoerster.name>
3 # 3 #
4 # Permission is hereby granted, free of charge, to any person obtaining 4 # Permission is hereby granted, free of charge, to any person obtaining
5 # a copy of this software and associated documentation files (the 5 # a copy of this software and associated documentation files (the
6 # "Software"), to deal in the Software without restriction, including 6 # "Software"), to deal in the Software without restriction, including
7 # without limitation the rights to use, copy, modify, merge, publish, 7 # without limitation the rights to use, copy, modify, merge, publish,
176 176
177 %.o: %.c 177 %.o: %.c
178 $(MAKEDEPEND.c) $< | $(SED) -f deps.sed >$*.d 178 $(MAKEDEPEND.c) $< | $(SED) -f deps.sed >$*.d
179 $(COMPILE.c) -o $@ $< 179 $(COMPILE.c) -o $@ $<
180 180
181 install: 181 install: all
182 $(INSTALL.exec) $(PACKAGE) "$(DESTDIR)$(bindir)/$(PACKAGE)" 182 $(INSTALL.exec) $(PACKAGE) "$(DESTDIR)$(bindir)/$(PACKAGE)"
183 for manpage in $(MANPAGES); do \ 183 for manpage in $(MANPAGES); do \
184 if [ -L $${manpage} ]; then \ 184 if [ -L $${manpage} ]; then \
185 $(INSTALL.link) $${manpage} \ 185 $(INSTALL.link) $${manpage} \
186 "$(DESTDIR)$(mandir)/man$${manpage##*.}/$${manpage##*/}"; \ 186 "$(DESTDIR)$(mandir)/man$${manpage##*.}/$${manpage##*/}"; \