]> Dogcows Code - chaz/tar/blobdiff - lib/Makefile.tmpl
Insert Emacs magic to the first line.
[chaz/tar] / lib / Makefile.tmpl
index 0806a7438ffa6234e19d7babcd69ccb1228d5869..03fc1064831e488d27ff78e12a70b794452534ac 100644 (file)
@@ -1,6 +1,6 @@
-# Makefile for GNU tar library.
+# Makefile for GNU tar library.        -*- Makefile -*-
 
-# Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004
+# Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2003, 2004, 2005
 # Free Software Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
 ## 02111-1307, USA.
 
 noinst_LIBRARIES = libtar.a
+noinst_HEADERS = system.h localedir.h rmt.h
+libtar_a_SOURCES = prepargs.c prepargs.h rtapelib.c
 
-libtar_a_SOURCES = prepargs.c prepargs.h
+localedir = $(datadir)/locale
+
+DISTCLEANFILES = localedir.h
+localedir.h : Makefile
+       echo '#define LOCALEDIR "$(localedir)"' >$@
+       echo "#ifndef DEFAULT_RMT_COMMAND" >> $@
+       echo "# define DEFAULT_RMT_COMMAND \"$(DEFAULT_RMT_DIR)/`echo rmt | sed '$(transform)'`$(EXEEXT)\"" >> $@
+       echo "#endif" >> $@
+
+rtapelib.o: localedir.h
 
 libtar_a_LIBADD = $(LIBOBJS) $(ALLOCA)
 libtar_a_DEPENDENCIES = $(libtar_a_LIBADD)
@@ -39,5 +50,6 @@ $(srcdir)/getdate.c: getdate.y
          $(YACC) $(YFLAGS) getdate.y && \
          mv -f y.tab.c getdate.c
 
+SUFFIXES = .o .c .h
+CLEANFILES =
 # gnulib modules
-
This page took 0.022557 seconds and 4 git commands to generate.