Index: trunk/psLib/src/astronomy/Makefile
===================================================================
--- trunk/psLib/src/astronomy/Makefile	(revision 1463)
+++ trunk/psLib/src/astronomy/Makefile	(revision 1787)
@@ -14,5 +14,11 @@
 OBJS = $(addprefix makedir/,$(SRC_OBJS))
 
+HEADERS = $(SRC_OBJS:.o=.h) psPhotometry.h slalib.h
+
 all: $(TARGET_STATIC)
+
+psAstronomyErrors.h: psAstronomyErrors.dat
+	perl ../parseErrorCodes.pl --data=$? $@
+
 
 # Rule to make static library
@@ -25,5 +31,5 @@
 # Define PHONY target "install" which will install necessary files
 install: $(TARGET_STATIC)
-	install *.h $(includedir)
+	install $(HEADERS) $(includedir)
 
 # Define PHONY target "distclean" which will cleanup the distribution
