chiark / gitweb /
Progress towards Standards.info
[adns.git] / client / Makefile.in
index 161534042898291d410d827b5d43787f0a338f10..2d3638eec75d24242235470be5c2bc47f051ea1e 100644 (file)
 #  along with this program; if not, write to the Free Software Foundation,
 #  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 
 
-DIRCFLAGS=     -I../src
+srcdir=                @srcdir@
+VPATH=         @srcdir@
+
 TARGETS=       adnstest
+include                $(srcdir)/../settings.make
 
-include ../settings.make
+DIRCFLAGS=     -I$(srcdir)/../src
 
 install:       $(TARGETS)
-               $(INSTALL_BIN) $(TARGETS) $(bin_dir)
+               set -xe; for f in $(TARGETS); \
+                       do $(INSTALL_PROGRAM) $$f $(bin_dir)/$$f; done
+
+uninstall:
+               for f in $(TARGETS); do rm -f $(bin_dir)/$$f; done
 
-adnstest:      adnstest.o ../dynamic/$(LIBFILE)
+adnstest:      adnstest.o $(srcdir)/../dynamic/$(SHLIBFILE)