chiark / gitweb /
Progress towards Standards.info
[adns.git] / client / Makefile.in
index 76a8bd9..2d3638e 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. 
 
-SUBDIR=/client
-DIRCFLAGS=     -I$(srcdir)/src
+srcdir=                @srcdir@
+VPATH=         @srcdir@
+
 TARGETS=       adnstest
+include                $(srcdir)/../settings.make
 
-include $(srcdir)/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 $(srcdir)/dynamic/$(SHLIBFILE)
+adnstest:      adnstest.o $(srcdir)/../dynamic/$(SHLIBFILE)