File 0001-Fix-utils-tofits-location-in-Fortran-GNUmakefile.patch of Package wcslib
From 4fe106a1b90fd61b8f41d26ea0fc2dc34db2cd8d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Wed, 10 Nov 2021 22:33:33 +0100
Subject: [PATCH] Fix utils/tofits location in Fortran/GNUmakefile
---
Fortran/GNUmakefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Fortran/GNUmakefile b/Fortran/GNUmakefile
index 99abea9..a337ede 100644
--- a/Fortran/GNUmakefile
+++ b/Fortran/GNUmakefile
@@ -171,8 +171,8 @@ $(PICLIB)(%_data.o) : $(WCSLIB)(%_data.o)
-@ echo ''
$(FC) $(FFLAGS) -c $<
-%.fits : ../C/test/%.keyrec tofits
- ./tofits < $< > $@
+%.fits : ../C/test/%.keyrec ../utils/tofits
+ ../utils/tofits < $< > $@
run_% : %
-@ echo ''
@@ -317,7 +317,7 @@ cleaner : clean
- $(RM) .gdb_history
- $(RM) $(TEST_N)
- $(RM) $(TEST_P) tpih2 twcstab
- - $(RM) tofits fitshdr.fits pih.fits TPV7.fits test_results
+ - $(RM) fitshdr.fits pih.fits TPV7.fits test_results
cleanest distclean realclean : cleaner
- $(RM) $(WCSLIB) $(PICLIB) $(SHRLIB)
@@ -361,7 +361,7 @@ $(PGSBOXLIB) :
-@ echo ''
$(MAKE) -C ../pgsbox lib
-tofits : ../C/test/tofits.c
+../utils/tofits : ../utils/tofits.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
../C/wcstab.fits : ;
--
2.33.1