Permalink
Fetching contributors…
Cannot retrieve contributors at this time
130 lines (110 sloc) 2.77 KB
# This file is processed by configure to produce the final Makefile
# The default goal of this Makefile is...
all::
CFLAGS=@CFLAGS@
LDFLAGS=@LDFLAGS@
ALL_CFLAGS=$(CFLAGS)
ALL_LDFLAGS=$(LDFLAGS) -lalpm -lcurl -lyajl -pthread -larchive
EXTRA_CPPFLAGS=
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
datarootdir=@datarootdir@
datadir=@datadir@
sysconfdir=@sysconfdir@
mandir=@mandir@
man1dir=$(mandir)/man1
CC=@CC@
TAR=tar
INSTALL=install
RM=rm -f
SHELL=/bin/sh
.SUFFIXES:
.SUFFIXES: .c .o
POWAUR-VERSION-FILE: FORCE
@$(SHELL) ./POWAUR-VERSION-GEN
-include POWAUR-VERSION-FILE
# Guard against environment variables
SRC=
HDRS=
OBJS=
DIST_FILES=
SRC+=conf.c
SRC+=curl.c
SRC+=download.c
SRC+=environment.c
SRC+=error.c
SRC+=graph.c
SRC+=handle.c
SRC+=hash.c
SRC+=hashdb.c
SRC+=json.c
SRC+=memlist.c
SRC+=package.c
SRC+=powaur.c
SRC+=query.c
SRC+=sync.c
SRC+=wrapper.c
SRC+=util.c
HDRS=$(SRC:.c=.h)
OBJS=$(SRC:.c=.o)
DIST_FILES=$(SRC) $(HDRS)
DIST_FILES+=POWAUR-VERSION-GEN
DIST_FILES+=configure
DIST_FILES+=config.h.in
DIST_FILES+=Makefile.in
DIST_FILES+=powaur.1.txt
DIST_FILES+=powaur.conf
DIST_FILES+=COPYING
DIST_FILES+=INSTALL
DIST_FILES+=NEWS
DIST_FILES+=README.md
DIST_FILES+=TECHNICAL
all:: powaur
powaur: $(OBJS)
$(CC) $(OBJS) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS)
powaur.o: powaur.c POWAUR-VERSION-GEN
$(CC) -o $@ -c $(ALL_CFLAGS) $(EXTRA_CPPFLAGS) $<
powaur.o: EXTRA_CPPFLAGS = -DPOWAUR_VERSION='"$(POWAUR_VERSION)"'
$(OBJS): error.h environment.h powaur.h util.h wrapper.h
conf.o environment.o query.o: conf.h
download.o json.o sync.o: curl.h
download.o powaur.o sync.o: download.h
query.o sync.o: graph.h
handle.o json.o powaur.o: handle.h
hash.o hashdb.o sync.o: hash.h
download.o package.o query.o sync.o: hashdb.h
handle.o powaur.o sync.o: json.h
hashdb.o powaur.o: memlist.h
query.o powaur.o sync.o: package.h
json.o query.o: query.h
powaur.o sync.o: sync.h
install: all
$(INSTALL) -d -m 755 $(DESTDIR)$(bindir)
$(INSTALL) -m 755 powaur $(DESTDIR)$(bindir)
@cp powaur.1.txt powaur.1
@gzip -9 powaur.1
$(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
$(INSTALL) -m 644 powaur.1.gz $(DESTDIR)$(man1dir)
$(INSTALL) -d -m 755 $(DESTDIR)/usr/share/powaur/
$(INSTALL) -m 644 powaur.conf $(DESTDIR)/usr/share/powaur/
@$(RM) powaur.1.gz
clean:
-$(RM) powaur *.o
-$(RM) -r $(POWAUR_TARNAME)
-$(RM) $(POWAUR_TARNAME).tar.gz
-$(RM) POWAUR-VERSION-FILE
POWAUR_TARNAME=powaur-$(POWAUR_VERSION)
dist: configure
@$(RM) $(POWAUR_TARNAME)
@mkdir $(POWAUR_TARNAME)
@cp $(DIST_FILES) $(POWAUR_TARNAME)
@echo $(POWAUR_VERSION) > $(POWAUR_TARNAME)/version
tar -cf $(POWAUR_TARNAME).tar $(POWAUR_TARNAME)
gzip -9 $(POWAUR_TARNAME).tar
@$(RM) -r $(POWAUR_TARNAME)
distclean: clean
-$(RM) configure
-$(RM) -r autom4te.cache
-$(RM) config.log config.status
.PHONY: all clean dist distclean install FORCE