Skip to content

Commit

Permalink
Make mkpkg customizeable
Browse files Browse the repository at this point in the history
This allows to set the "mkpkg" command f.e. to $(iraf)unix/bin/mkpkg.e
so that x11iraf can be built completely without a fully installed mkpkg.
  • Loading branch information
olebole committed Mar 2, 2024
1 parent 16af84a commit fccc783
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ximtool/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ all: ximtool clients

.PHONY: clients

ifdef iraf
MKPKG ?= $(iraf)unix/bin/mkpkg.e
else
MKPKG ?= mkpkg
endif

CFLAGS += -I../obm -I${TCL_INCLUDE_DIR}

UNAME_S := $(shell uname -s)
Expand Down Expand Up @@ -34,8 +40,8 @@ ximtool: $(OBJS)
-lXpm $(TCL_LIB) -lXaw3d -lXmu -lXt -lXext -lX11 -lncurses -lm

clients:
cd clients && mkpkg || true
cd clients && $(MKPKG) || true

clean:
rm -f ximtool ximtool.gui.h ximtool.html.h $(OBJS)
cd clients && mkpkg clean || true
cd clients && $(MKPKG) clean || true

0 comments on commit fccc783

Please sign in to comment.