Files

39 lines
800 B
Diff

Fix parallel building.
https://github.com/XEphem/XEphem/pull/58
--- Makefile.orig 2024-02-13 08:35:36.000000000 -0600
+++ Makefile 2025-10-26 23:33:21.000000000 -0500
@@ -192,21 +192,23 @@
xephem.o \
xmisc.o
-all: libs xephem xephem.1
+LIBRARIES := libip liblilxml libjpegd libpng libz
-xephem: $(INCS) $(OBJS)
+all: $(LIBRARIES) xephem xephem.1
+
+xephem: $(INCS) $(OBJS) $(LIBRARIES)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
xephem.1: xephem.man
nroff -man $? > $@
-libs:
- cd ../../libastro; make
- cd ../../libip; make
- cd ../../libjpegd; make
- cd ../../liblilxml; make
- cd ../../libpng; make
- cd ../../libz; make
+libs: $(LIBRARIES)
+
+$(LIBRARIES): libastro
+ $(MAKE) --directory=../../$@
+
+libastro:
+ $(MAKE) --directory=../../$@
clean:
rm -fr *.o ../../lib*/*.[ao]