Skip to content

Commit b73c94c

Browse files
committed
Fixed makefile directory issue
1 parent 6c46dad commit b73c94c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Makefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ clean:
6767

6868
# Link:
6969
$(TARGET).$(CUR).$(REV).$(AGE): $(OBJECTS)
70+
@mkdir -p $(TARGETDIR)
7071
$(CC) -o $(TARGETDIR)/$(TARGET).$(CUR).$(REV).$(AGE) $^ $(LIB) $(CFLAGS) $(LDFLAGS)
7172

7273
# Compile:
@@ -112,4 +113,4 @@ uninstall:
112113
@ldconfig -n $(LIBDESTDIR)
113114

114115
# Non-file targets:
115-
.PHONY: all remake clean install uninstall
116+
.PHONY: all remake clean install uninstall

configure

100644100755
File mode changed.

test/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ source: $(TARGET)
4444
directories:
4545
@mkdir -p $(TARGETDIR)
4646
@mkdir -p $(BUILDDIR)
47-
@cp $(ROOT)/../src/* $(SRCDIR)/
4847

4948
# Clean target and object files:
5049
clean:
@@ -55,6 +54,7 @@ clean:
5554

5655
# Link:
5756
$(TARGET): $(OBJECTS)
57+
@mkdir -p $(TARGETDIR)
5858
$(CC) -o $(TARGETDIR)/$(TARGET) $^ $(LIB) $(CFLAGS) $(LDFLAGS)
5959

6060
# Compile:
@@ -75,4 +75,4 @@ library:
7575
gcc -Wall $(DEBUG_SYM) $(LIBDIR) -o $(TARGETDIR)/$(TARGET) $(SRCDIR)/$(TARGET).$(SRCEXT) -ldmapwm
7676

7777
# Non-file targets:
78-
.PHONY: all remake clean library
78+
.PHONY: all remake clean library

test/configure

100644100755
File mode changed.

0 commit comments

Comments
 (0)