add DESTDIR support and .PHONY
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4572 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -55,16 +55,18 @@ Wall:
|
||||
$(CC) -c $(DEFS) -I../../include -I. -I$(srcdir) -I$(srcdir)/../des $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
|
||||
|
||||
install: all
|
||||
$(MKINSTALLDIRS) $(includedir)/ss
|
||||
$(INSTALL_DATA) $(srcdir)/ss.h $(includedir)/ss
|
||||
$(MKINSTALLDIRS) $(libdir)
|
||||
$(INSTALL) -m 555 $(sl_LIB) $(libdir)/$(sl_LIB)
|
||||
$(INSTALL) -m 555 $(sl_LIB) $(libdir)/$(ss_LIB)
|
||||
$(MKINSTALLDIRS) $(bindir)
|
||||
$(INSTALL) -m 0555 $(PROGS) $(bindir)
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(includedir)/ss
|
||||
$(INSTALL_DATA) $(srcdir)/ss.h $(DESTDIR)$(includedir)/ss/ss.h
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(libdir)
|
||||
$(INSTALL) -m 555 $(sl_LIB) $(DESTDIR)$(libdir)/$(sl_LIB)
|
||||
$(INSTALL) -m 555 $(sl_LIB) $(DESTDIR)$(libdir)/$(ss_LIB)
|
||||
$(MKINSTALLDIRS) $(DESTDIR)$(bindir)
|
||||
$(INSTALL) -m 0555 $(PROGS) $(DESTDIR)$(bindir)/$(PROGS)
|
||||
|
||||
uninstall:
|
||||
rm -f $(libdir)/$(sl_LIB) $(libdir)/$(ss_LIB)
|
||||
rm -f $(DESTDIR)$(includedir)/ss/ss.h
|
||||
rm -f $(DESTDIR)$(libdir)/$(sl_LIB) $(DESTDIR)$(libdir)/$(ss_LIB)
|
||||
rm -f $(DESTDIR)$(bindir)/$(PROGS)
|
||||
|
||||
TAGS: $(SOURCES)
|
||||
etags $(SOURCES)
|
||||
@@ -107,4 +109,4 @@ lex.c: $(srcdir)/lex.l
|
||||
$(LEX) $(srcdir)/lex.l
|
||||
mv -f lex.yy.c lex.c
|
||||
|
||||
.PHONY: all install uninstall check clean mostlyclean distclean realclean
|
||||
.PHONY: all Wall install uninstall check clean mostlyclean distclean realclean
|
||||
|
Reference in New Issue
Block a user