Makefile.in 803 Bytes
Newer Older
1
PHONY: config byte opt clean superclean install
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
2

3
BINARIES=acgc acgc.opt acg acg.opt
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
4

5 6 7 8 9

prefix = @prefix@
exec_prefix = @exec_prefix@

byte opt: 
10 11
	$(MAKE) -C src $@
	for file in $(BINARIES); do find . -name "$$file" -exec cp {} . \; ; done
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
12

13
all: byte opt
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
14 15 16 17 18

superclean clean:
	if test "$@" = clean ; then $(MAKE) -C config $@ ; fi
	$(MAKE) -C src $@
	rm -rf *.log  *~ autom4te.cache
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
19
	find . -name "*~" -exec rm -f {} \;
20
	-for file in $(BINARIES); do rm $$file ; done
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
21

22 23 24 25 26
install:
	for file in $(BINARIES); do if test -x $$file ; then cp $$file @bindir@/. ; fi ; done

uninstall:
	for file in $(BINARIES); do if test -x @bindir@/$$file ; then rm @bindir@/$$file ; fi ; done
POGODALLA Sylvain's avatar
POGODALLA Sylvain committed
27 28 29 30 31 32 33 34 35


# Part for the auto configuration

config: configure

configure: config/configure.ac
	cd $(<D) && autoconf && mv configure .. & cd ..